package snake.entities;				//Right!

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;


import snake.util.Global;


public class Food extends Point{	
	
	public boolean isSnakeEatFood(Snake snake){
		System.out.println("Food isSnakeEatFood");
		if(this.equals(snake.getHead())){
			return true;
		}
		return false;
	}
	
	public void draw(Graphics g){
		System.out.println("Food draw");
		g.setColor(Color.GREEN);
		g.fill3DRect(this.x*Global.CELL_SIZE, this.y*Global.CELL_SIZE, Global.CELL_SIZE, Global.CELL_SIZE, true);
	}
}
